// pages/index/psychology/assessment/assessmentlist/assessmentlist.js
Page({

  /**
   * Page initial data
   */
  data: {
    id: "",
    heartMarkDetail: [],
  },

  //查询详情页的数据
  selectHeartMarkDetail() {
    const that = this
    wx.request({
      url: `http://localhost:8080/heartmark/findHeartMarkByIdForApp?id=${this.data.id}`,
      success(res) {
        console.log(res);
        that.setData({
          heartMarkDetail: res.data.data
        })
      }
    })
  },

  /**
   * Lifecycle function--Called when page load
   */
  onLoad(options) {
    const id1 = options.id;
    this.setData({
      id: id1
    })
    this.selectHeartMarkDetail()
  },

  /**
   * Lifecycle function--Called when page is initially rendered
   */
  onReady() {

  },

  /**
   * Lifecycle function--Called when page show
   */
  onShow() {

  },

  /**
   * Lifecycle function--Called when page hide
   */
  onHide() {

  },

  /**
   * Lifecycle function--Called when page unload
   */
  onUnload() {

  },

  /**
   * Page event handler function--Called when user drop down
   */
  onPullDownRefresh() {

  },

  /**
   * Called when page reach bottom
   */
  onReachBottom() {

  },

  /**
   * Called when user click on the top right corner to share
   */
  onShareAppMessage() {

  }
})